package com.qf.service.impl;

import com.qf.mapper.TbCategoryMapper;
import com.qf.pojo.TbCategory;
import com.qf.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private TbCategoryMapper categoryMapper;

    @Override
    public List<TbCategory> selectAll() {
        return categoryMapper.selectList(null);
    }
}
